#ifndef __SPI_FLASH_DISK_H__
#define __SPI_FLASH_DISK_H__

#include <stdint.h>
#include <ff.h>
#include "diskio.h"

#ifdef __cplusplus
extern "C" {
#endif

DSTATUS SPI_FLASH_initialize(void);

DSTATUS SPI_FLASH_status(void);

DRESULT SPI_FLASH_read(BYTE *buff, DWORD sector, UINT count);

DRESULT SPI_FLASH_write(BYTE *buff, DWORD sector, UINT count);

DRESULT SPI_FLASH_ioctl(BYTE cmd, void *buff);

#if defined(__cplusplus)
}
#endif

#endif

